var express = require('express');
// 路由中间件
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

// api/users/signup
router.post('/signup', (req, res, next) => {
  let data = req.body
  // console.log(data.username, data.password)
  res.json(data)
})

module.exports = router;
